
const proxy = require(`http-proxy-middleware`);

// 端侧
module.exports = function (app) {

    // 本地开放
    app.use(proxy(`/app`, {
        target: `http://localhost:3100`,
        changeOrigin: true,
        pathRewrite: {
            '^/app': '',
        },
    }))
}

 